package cpm.project;

public class HusbandTest {
    public static void main(String[] args) {
        Man m = new Man();
        m.sleep();

        Husband a = new Husband();
        a.fix();
        a.getMoney();

        ATM b = new Husband();
        b.getMoney();
    }
}

class Man{
    public String name;
    public void sleep(){

    }
}

class Husband extends Man implements ATM,Fix{

    @Override
    public void getMoney() {
        System.out.println("取钱");
    }

    @Override
    public void fix() {
        System.out.println("修东西");
    }
}

interface ATM{
    public void getMoney();

}

interface Fix{
    public void fix();
}